package com.ilop.siteraudio.activity;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.ilop.siteraudio.R;

/**
 * @author skygge
 * @date 2020/8/28.
 * GitHub：javofxu@github.com
 * email：skygge@yeah.net
 * description：闪屏页
 */
public class SplashActivity extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash);
        new Handler().postDelayed(() -> {
            startActivity(new Intent(SplashActivity.this, CenterActivity.class));
            finish();
        }, 2000);
        overridePendingTransition(0, 0);
    }
}
